目前使用过的各大厂商rtsp取流的url |
您所在的位置:网站首页 › 获取 视频流 › 目前使用过的各大厂商rtsp取流的url |
目前使用过的各大厂商取流规则是在实际的工作中遇到的相关视频接入问题,通过rtsp协议接入视频数据的一些记录,其中的图片可能来源于网络,内容部分来源于网络,本人仅仅是对相关内容作了汇总。 海康RTSP取流URL格式备注: VLC 可以支持解析 URL 里的用户名密码,实际发给设备的 RTSP 请求不支持带用户名密码。 实时预览取流 设备预览取流的 RTSP URL 有新老版本,2012 年之前的设备(比如 V2.0 版本的 Netra 设备)支持老的取流格式,之后的设备新老取流格式都支持。 老版本 URL 规定: rtsp://username:password@//ch/ 海康实时取流老版本 举例说明: DS-9016HF-ST 的 IP 通道 01 主码流: rtsp://admin:[email protected]:554/h264/ch33/main/av_stream DS-9016HF-ST 的模拟通道 01 子码流: rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream DS-9016HF-ST 的零通道主码流(零通道无子码流): rtsp://admin:[email protected]:554/h264/ch0/main/av_stream DS-2DF7274-A 的第三码流: rtsp://admin:[email protected]:554/h264/ch1/stream3/av_stream 新版本 URL规定: rtsp://username:password@:/Streaming/Channels/(?parm1=value1&parm2-=value2…) 备注: 前面老版本 URL,NVR(>= 64 路的除外)的 IP 通道从 33 开始;新URL,通道号全部按顺序从1开始。 举例说明: DS-9632N-ST 的 IP 通道 01 主码流: rtsp://admin:[email protected]:554/Streaming/Channels/101?transportmode=unicast DS-9016HF-ST 的 IP 通道 01 主码流: rtsp://admin:[email protected]:554/Streaming/Channels/1701?transportmode=unicast DS-9016HF-ST 的模拟通道 01 子码流: (单播) rtsp://admin:[email protected]:554/Streaming/Channels/102?transportmode=unicast (多播) rtsp://admin:[email protected]:554/Streaming/Channels/102?transportmode=multicast (问号后面可省略,默认单播) rtsp://admin:[email protected]:554/Streaming/Channels/102 DS-9016HF-ST 的零通道主码流(零通道无子码流): rtsp://admin:[email protected]:554/Streaming/Channels/001 DS-2DF7274-A 的第三码流: rtsp://admin:[email protected]:554/Streaming/Channels/103 回放取流 URL规定: rtsp://username:password@:/Streaming/tracks/(?parm1=value1&parm2-=value2…) 海康回放取流 举例说明: DS-9016HF-ST 的模拟通道 01: rtsp://admin:[email protected]:554/Streaming/tracks/101?starttime=20120802t063812z&endtime=20120802t064816z DS-9016HF-ST的 IP 通道 01: rtsp://admin:[email protected]:554/Streaming/tracks/1701?starttime=20131013t093812z&endtime=20131013t104816z 表示以单播形式回放指定设备的通道中的录像文件,时间范围是 starttime 到 endtime,其中 starttime 和 endtime 为 ISO 8601 标准时间格式。 具体格式是 YYYYMMDDTHHmmSS.fractionZ,Y 是年,M 是月,D 是日,T 是时间分格符,H 是小时,M 是分,S 是秒,Z 是可选的表示 Zulu(GMT)时间。 大华设备实时预览取流 URL规定: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0 回放取流 暂不明确。 宇视RTSP取流URL格式实时预览取流 URL 规定: 新设备 rtsp://username:password@:/unicast/c/s/live 老设备 rtsp://username:password@:/video123 123对应3个码流 举例说明: 获取 IP 通道 01 主码流: rtsp://admin:[email protected]:554/unicast/ch1/s0/live 获取 IP 通道 02 子码流: rtsp://admin:[email protected]:554/unicast/ch2/s1/live 回放取流 URL规定: rtsp://username:password@:/c/b/e/replay/ 举例说明: 回放通道 01 远程录像: rtsp://admin:[email protected]:554/c1/b1494208846/e1494209026/replay/ 时间范围是 starttime 到 endtime,其中 starttime 和 endtime 为 UNIX 时间戳格式。 RTSP 控制参数回放取流 RTSP PLAY 命令格式如下: PLAY rtsp://192.168.1.106:554/c1/replay/ RTSP/1.0 CSeq: 28 Authorization: Digest username="admin", realm="48ea632fc01e", nonce="5902a8beca904f4d52f5", uri="rtsp://192.168.1.106:554/c1/replay/", response="558885ca5f4e885d41b761301a32f7a8" Session: 88 Scale: 1.000000 Speed: 1.000000 Range: clock=20170426T021045Z-20170426T021945Z User-Agent: IMCP 通过 RTSP 的 Scale、Speed 及 Range 参数指定回放的速度及时间范围,Range 参数的 clock 值指定远程录像的开始和结束时间。 博世RTSP取流URL格式实时预览取流 URL 规定: rtsp://192.168.2.136/rtsp_tunnel?h26x=0&line=1&meta=1&metaline=1 参数说明: inst 参数表示取第几个流,例如 inst=2 表示取子码流; line 参数表示取第几路摄像机码流,例如 line=2 表示第 2 个摄像机; 指定 multicast=1 表示需要以组播方式取流; h26x 参数用于指定编码格式: JPEG h26x=0 MPEG-4 SH++ h26x=3 H.264 h26x=4 enableaudio 参数用于启用音频支持,audio_line 参数指定使用第几个音频输入,例如下面的地址表示从第一个摄像机取流并开启音频使用第一个音频输入: rtsp://160.10.0.40/?line=1&enableaudio=1&audio_line=1 IP 地址之后如果带 rtsp_tunnel 表示以 TCP 方式取流,上面默认的地址格式是以 UDP 方式取流。 景阳sunellrtsp://[username]:[password]@[ip]:[port]/snl/live/1/1 rtsp://admin:[email protected]:554/snl/live/1/1 3S rtsp Url:rtsp://[username]:[password]@[ip]:[port]/cam1/h264 rtsp://aaa:[email protected]/cam1/h264 主码流 rtsp://aaa:[email protected]/cam1/h264-1 子码流(建议采用) rtsp://aaa:[email protected]/cam1/mjpeg MJPEG串流 雄迈/巨峰rtsp:// [ip]:[port]/user=admin&password=&channel=1&stream=0.sdp? 说明:IP是这个是被连接的设备的IP 554这个是RTSP服务的端口号,可以在设备的网络服务里面更改 user=admin这个是设备的登录用户名 password= 密码空 channel=1 第一通道 stream=0.sdp?主码流 stream=1.sdp?副码流 图片抓拍地址:http://ip/webcapture.jpg?command=snap&channel=1 天视通 主码流:rtsp://ip:554/mpeg4 子码流:rtsp://ip:554/mpeg4cif 图片抓拍地址:http://ip/snapshot.cgi 中维/尚维rtsp://ip:8554/live1.264(次码流) rtsp://ip:8554/live0.264 (主码流) 九安rtsp://IP:port(website port)/ch0_0.264(主码流) rtsp://IP:port(website port)/ch0_1.264(子码流) 技威/YOOSEE主码流:rtsp://IPadr:554/onvif1 次码流:rtsp://IPadr:554/onvif2 V380主码流rtsp://ip//live/ch00_1 子码流rtsp://ip//live/ch00_0 天地伟业rtsp://ip:port 巨龙/JVT主码流地址:rtsp://IP/av0_0 次码流地址:rtsp://IP/av0_1 图片抓拍地址:http://ip/capture/webCapture.jpg?channel=1&FTpsend=0&checkinfo=0 (http://ip/cgi-bin/images_cgi?channel=1&user=admin&pwd=admin) Axis(安讯士)rtsp://[username]:[password]@[ip]/axis-media/media.amp?[videocodec]&[resolution] 说明: username:用户名 password:密码。如果没有网络验证可省略用户名密码部分以及@字符。 ip:为设备IP。例如192.168.0.108。 videocodec:支持MPEG、h.264等,可缺省。 resolution:分辨率,如resolution=1920x1080,若采用默认分辨率,可缺省此参数。 例如,请求某设备h264编码的1280x720的码流,URL如下: rtsp:// 192.168.200.202/axis-media/media.amp?videocodec=h264&resolution=1280x720 英飞拓如有不全或错误随时补充调整,以上是目前接触到的相关摄像厂商的rtsp的url。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |